package com.ruoyi.basic.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;

import javax.validation.constraints.NotBlank;

import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.mybatisplus.core.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;

/**
 * 培训经历对象 basic_train
 * 
 * @author ruoyi
 * @date 2021-08-23
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("basic_train")
public class BasicTrain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 培训id */
    @TableId(type = IdType.AUTO)
    private Long trainId;

    private Long userId;

    @TableField(exist = false)
    private String userNo;

    @TableField(exist = false)
    @Excel(name = "员工姓名")
    private String userName;

    @TableField(exist = false)
    @Excel(name = "身份证号")
    private String idCard;

    @TableField(exist = false)
    private Long deptId;

    /** 培训名称 */
    @NotBlank(message = "培训名称不能为空")
    @Excel(name = "培训名称")
    private String trainName;

    /** 培训类别 */
    @Excel(name = "培训类别", dictType = "basic_train_type", comboDict = "basic_train_type")
    private String trainType;

    /** 培训地点 */
    @NotBlank(message = "培训地点不能为空")
    @Excel(name = "培训地点")
    private String trainAddr;

    /** 开始时间 */
    @NotBlank(message = "开始时间不能为空")
    @Excel(name = "开始时间", dateFormat = "yyyy-MM-dd")
    private String startTime;

    /** 结束时间 */
    @Excel(name = "结束时间", dateFormat = "yyyy-MM-dd")
    private String endTime;

    /** 附件地址 */
    private String fileUrl;

    /** 删除标志 */
    @TableLogic
    private String delFlag;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

}
